package com.lmaye.design.patterns.behavioral.observer.demo2;

import java.util.ArrayList;
import java.util.List;

/**
 * --
 *
 * @author lmay.Zhou
 * @qq 379839355
 * @email lmay@lmaye.com
 * @date 2021/4/19 下午5:42
 * @since 1.8
 */
public abstract class Rate {
    protected List<Company> companies = new ArrayList<>();

    public void add(Company company) {
        companies.add(company);
    }

    public void remove(Company company) {
        companies.remove(company);
    }

    /**
     * change
     *
     * @param number int
     */
    public abstract void change(int number);
}
